﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using MindMapper.Business;

namespace MindMapper.Web
{
    public partial class WebMethods : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            throw new Exception();
        }

        [WebMethod]
        public static string GetMindMap(string id)
        {
            return JsonHelper.Serialize(MindMapManager.Get(id));
        }

        //private static void F(MindMap mindMap)
        //{ 
        
        //}


        //public class Node
        //{
        //    public string Id { get; set; }

        //    public string Text { get; set; }

        //    public List<string> Chil { get; set; }
        //}
    }
}